//JavaScript Framework 2.0 Code
try {
	Type.registerNamespace('com.yonyou.ncmm_pac_pda.DM_rack_docDetailController');
	com.yonyou.ncmm_pac_pda.DM_rack_docDetailController = function() {
		com.yonyou.ncmm_pac_pda.DM_rack_docDetailController.initializeBase(this);
		this.initialize();
	}

	function com$yonyou$ncmm_pac_pda$DM_rack_docDetailController$initialize() {}

	function com$yonyou$ncmm_pac_pda$DM_rack_docDetailController$evaljs(js) {
		eval(js)
	}

	function onPageBtnClick(sender, args) {
		$view.close({
			"resultCode": "15"
		})
	}

	function pageload(sender, args) {
		$js.showLoadingBar({
			msg: "正在加载数据……"
		});
		var param = $param.getJSONObject("row");
		if(param == null || param == "")
			return;
		param = $stringToJSON(param);
		NCMMDBDetailUtil.showTitle(param);
		NCMMDBDetailUtil.apptablename = param["apptablename"];

		if(NCMMDBDetailUtil.isNeedShow(param)) {
			NCMMDBDetailUtil.showDataList();
		}

		$js.hideLoadingBar();
	}

	//列表下拉
	function listDownRefresh(sender, args) {
		var ret = NCMMDBDetailUtil.listDown();
		if(ret)
			$id("listviewdefine0").set("scrollto", "start");
	}

	//列表上划
	function listUpRefresh(sender, args) {
		NCMMDBDetailUtil.listUp();
	}

	com.yonyou.ncmm_pac_pda.DM_rack_docDetailController.prototype = {
		initialize: com$yonyou$ncmm_pac_pda$DM_rack_docDetailController$initialize,
		evaljs: com$yonyou$ncmm_pac_pda$DM_rack_docDetailController$evaljs
	};
	com.yonyou.ncmm_pac_pda.DM_rack_docDetailController.registerClass('com.yonyou.ncmm_pac_pda.DM_rack_docDetailController', UMP.UI.Mvc.Controller);
} catch(e) {
	$e(e);
}